package com.cxf.windex.entity;

import javax.persistence.*;

@Table(name = "j_position_town")
public class PositionTown {
    @Id
    private Integer id;

    /**
     * 县级市id
     */
    @Column(name = "county_id")
    private Long countyId;

    /**
     * 镇id
     */
    @Column(name = "town_id")
    private Long townId;

    @Column(name = "town_name")
    private String townName;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取县级市id
     *
     * @return county_id - 县级市id
     */
    public Long getCountyId() {
        return countyId;
    }

    /**
     * 设置县级市id
     *
     * @param countyId 县级市id
     */
    public void setCountyId(Long countyId) {
        this.countyId = countyId;
    }

    /**
     * 获取镇id
     *
     * @return town_id - 镇id
     */
    public Long getTownId() {
        return townId;
    }

    /**
     * 设置镇id
     *
     * @param townId 镇id
     */
    public void setTownId(Long townId) {
        this.townId = townId;
    }

    /**
     * @return town_name
     */
    public String getTownName() {
        return townName;
    }

    /**
     * @param townName
     */
    public void setTownName(String townName) {
        this.townName = townName;
    }
}